/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       bitmap_layer_cache_window.cpp

	$Header: /game/bitmap_layer_cache_window.cpp $

	$NoKeywords: $

 ************************************************************************/

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#include "precompiled.h"
#pragma warning( disable: 4786 )

#include "bitmap_layer_cache_window.h"

// --------------------------------------------------------------
// layer window, but with a cache pointer
// --------------------------------------------------------------
t_bitmap_layer_cache_window::t_bitmap_layer_cache_window( t_bitmap_layer_ptr const& bitmap,
														  t_screen_point point, 
														  t_window* parent, bool use_offset )
						   : t_bitmap_layer_window( bitmap.get(), point, parent, 
						                            use_offset ), m_bitmap_ptr( bitmap )
{
}

// --------------------------------------------------------------
// layer window, but with a cache pointer
// --------------------------------------------------------------
void t_bitmap_layer_cache_window::set_bitmap( t_bitmap_layer_ptr const& bitmap, 
											  bool use_offset )
{
	t_bitmap_layer_window::set_bitmap( bitmap.get(), use_offset );
	m_bitmap_ptr = bitmap;
}

// --------------------------------------------------------------
// layer window, but with a cache pointer
// --------------------------------------------------------------
void t_bitmap_layer_cache_window::set_bitmap( t_bitmap_layer_ptr const& bitmap, 
											  t_screen_point point )
{
	t_bitmap_layer_window::set_bitmap( bitmap.get(), point );
	m_bitmap_ptr = bitmap;
}
